-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Arc::flipped
#367
Add Arc::flipped
#367
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks reasonable; what are the expected use-cases for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@DJMcNab these kinds of operations can be useful sometimes, for applications other than drawing (when it really doesn't matter what direction the line goes in).
assert_eq!(a.sweep_angle, -f.sweep_angle); | ||
|
||
// Flipping it again should result in the original arc | ||
assert_eq!(a, f.flipped()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No fuzzy testing needed, since there is only addition/subtraction meaning perfect accuracy, at least for normal input.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are confirming what I have here is fine, not suggesting a change, right?
c525dad
to
26bf67a
Compare
26bf67a
to
2ea831a
Compare
What are the next steps here? |
I am going to land it before the meeting. |
No description provided.